using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.IO;

namespace XnaDevRu.ContentBuilder
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
		[STAThread]
		static void Main(string[] args)
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);

			MainForm form = null;

			if (args != null && args.Length > 0 && File.Exists(args[0]))
				form = new MainForm(args[0]);
			else
				form = new MainForm();

			using (form)
			{
				Application.Run(form);
			}
		}
    }
}